package com.wejoy.video.middle.station.data.vo.evsapi;

import com.wejoy.video.middle.station.data.util.StringUtils;

import java.io.Serializable;

public class DeparmentInfoListVO implements Serializable {
    private static final long serialVersionUID=1L;

    private Long departmentId;
    private String name;
    private Integer deptType;
    private String departmentPath;

    public String getName() {
        if(!StringUtils.isEmpty(departmentPath)){
            return StringUtils.getLastSubstringAfterSlash(departmentPath);
        }
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getDeptType() {
        return deptType;
    }

    public void setDeptType(Integer deptType) {
        this.deptType = deptType;
    }

    public Long getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(Long departmentId) {
        this.departmentId = departmentId;
    }

    public String getDepartmentPath() {
        return departmentPath;
    }

    public void setDepartmentPath(String departmentPath) {
        this.departmentPath = departmentPath;
    }
}
